﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.DataBase.MyProject.Domain
{
    /// <summary>
    /// 记录表
    /// </summary>
    public class Record
    {
        [Key]
        public int RecordId { get; set; }

        /// <summary>
        /// 申请表id
        /// </summary>
        public int ApplicationId { get; set; }
        /// <summary>
        /// 申请人姓名
        /// </summary>
        public string  ApplicationName { get; set; }

        /// <summary>
        /// 部门Id
        /// </summary>
        public int? DepId { get; set; }
        /// <summary>
        /// 审批人姓名--登录人
        /// </summary>
        public string ApprovalName { get; set; }
        /// <summary>
        /// 请假原因
        /// </summary>
        public string Reason { get; set; }

        /// <summary>
        /// 审批状态    0：通过 1：拒绝
        /// </summary>
        public int ApproveStatus { get; set; }

        /// <summary>
        /// 审批意见    1:同意 2:拒绝
        /// <summary>
        public string? ApprovalOpinion{ get; set; }



        /// <summary>
        /// 拒绝原因
        /// </summary>
        public string? Reasonrejection { get; set; }

        /// <summary>
        /// 审批时间
        /// </summary>
        public DateTime ApprovalCreatetime { get; set; } 
    }
}
